package com.example.taco.bean;

import lombok.Data;
import lombok.RequiredArgsConstructor;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@RequiredArgsConstructor
public class Taco {

    @NotNull
    @Size(min = 5,message = "名字长度至少5")
    private String name;
    @Size(min = 1,message = "至少选一个")
    private List<String> ingredients;
}
